home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turn the Power On! 2
/
Turn the Power On! HP Workstations Volume II (HP) (1994).ISO
/
poweron-ii
< prev
Wrap
Text File
|
1994-02-22
|
2KB
|
101 lines
#!/bin/ksh
set +u
arg0=$0
PWD=`pwd`
umask a=rwx
DIR=`dirname $arg0`
BASE=`basename $arg0`
if [ $DIR = "." ]
then
PATH_NAME=${PWD}/lib/${BASE}/
else
PATH_NAME=${DIR}/lib/${BASE}/
fi
LANGU=${LANG:=american}
case ${LANGU} in
american ) ;;
japanese ) ;;
japanese.euc ) LANGU=japanese ;;
katakana ) LANGU=japanese ;;
chinese-t ) ;;
chinese-s ) LANGU=chinese-t ;;
korean ) ;;
* ) LANGU=american ;;
esac
if [ ! -d $PATH_NAME${LANGU} ]
then
LANGU=american
fi
echo @DEMO_HOME > /tmp/poweronii_vars
echo ${PATH_NAME} >> /tmp/poweronii_vars
echo @LANGUAGE >> /tmp/poweronii_vars
echo ${LANGU}/ >> /tmp/poweronii_vars
MP=${PATH_NAME}../../bin/Mpresent
export SHLIB_PATH=${PATH_NAME}../../lib/misc
if [ -x /usr/audio/bin/send_sound ]
then
export SendAudio=/usr/audio/bin/send_sound
elif [ -x /usr/audio/bin/acontrol ]
then
export SendAudio=${PATH_NAME}../../bin/send_sound
fi
cd ${PATH_NAME}
../../bin/ilcolors 0 &
IL_PID=$!
sleep 1
kill -0 $IL_PID 2>/dev/null
IL_STAT=$?
if [ 0 -ne ${IL_STAT} ]
then
/usr/bin/X11/xdialog -t "PowerON II" -p HPlogo.bm -m \
" There are not enough colors
available for this demo to run
correctly. Please stop some
applications and try again."
exit 1
fi
trap " kill $IL_PID ; ../../bin/kfork drive_server ; rm -f /tmp/poweron_vars /tmp/windows.dbf ; exit " 2 3 15
/usr/bin/X11/xdialog -t "PowerON II" -p HPlogo.bm -m \
"
Welcome to Turn the PowerON II
Loading the Demo from disk.
Please wait" &
XWD_PID=$!
cover/cache.ksh
PATH=$PATH:.
DISPLAY=${DISPLAY:=local:0}
export SB_710_VM_DB=TRUE
export AIM_VAR=$PATH_NAME
if [ -x /usr/audio/bin/AudioCP ]
then
/usr/audio/bin/AudioCP -geometry +0-1&
elif [ -x /usr/audio/bin/acontrol ]
then
/usr/audio/bin/acontrol -geometry +0-1&
fi
ACP=$!
kill $XWD_PID 2>/dev/null
$MP ${PATH_NAME}poweron-ii.iw
kill $IL_PID 2>/dev/null
kill $ACP
../../bin/kfork drive_server
../../bin/kfork send_sound
../../bin/kfork mplay
../../bin/kfork cover.ksh
rm -f /tmp/poweron_vars /tmp/windows.dbf